package com.jnshu.entity;

import java.io.Serializable;

public class Student implements Serializable {
    public Integer getSid() {
        return sid;
    }

    public void setSid(Integer sid) {
        this.sid = sid;
    }

    private Integer sid;

    public String getSname() {
        return sname;
    }

    public void setSname(String sname) {
        this.sname = sname;
    }

    private String sname;

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    private String password;

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    private String sex;

    public Integer getCid() {
        return cid;
    }

    public void setCid(Integer cid) {
        this.cid = cid;
    }

    private Integer cid;

    public String getBirthplace() {
        return birthplace;
    }

    public void setBirthplace(String birthplace) {
        this.birthplace = birthplace;
    }

    private String birthplace;
    public Student(){};
    public Student(Integer sid,String password,String sname,String sex,String birthplace,Integer cid){
        this.sid=sid;
        this.cid=cid;
        this.sex=sex;
        this.sname = sname;
        this.birthplace=birthplace;
        this.password=password;
    }

    @Override
    public String toString() {
        return "Student{" +
                "sid=" + sid +
                ", sname='" + sname + '\'' +
                ", password='" + password + '\'' +
                ", sex='" + sex + '\'' +
                ", cid=" + cid +
                ", birthplace='" + birthplace + '\'' +
                '}';
    }
}
